package com.example.parent.bookmanage_mybatisplus;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * MyBatis-Plus图书管理系统启动类
 * 标注为Spring Boot应用入口，配置MyBatis-Plus的Mapper接口扫描路径
 */
@SpringBootApplication
@MapperScan(basePackages = "com.example.parent.bookmanage_mybatisplus.dao")
// 指定MyBatis的Mapper接口扫描路径，Spring会自动生成这些接口的代理实现类
// 避免在每个Mapper接口上单独添加@Mapper注解
public class BookManageMyBatisPlusApplication {

    public static void main(String[] args) {
        SpringApplication.run(BookManageMyBatisPlusApplication.class, args);
    }

}